<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>
    function Fun(){}

    function Fn(){}

    function Box(){}

    Fn.prototype = new Fun();

    const fun = new Fun();
    const fn = new Fn();
    const box = new Box();

    console.log(Fun.prototype.isPrototypeOf( fun ));
    console.log(Fn.prototype.isPrototypeOf( fn ));
    console.log(Box.prototype.isPrototypeOf( box ));

    console.log(Fun.prototype.isPrototypeOf( fn ));

    console.log(Fn.prototype.isPrototypeOf( fun ));
    
    console.log(Box.prototype.isPrototypeOf( fun ));
    console.log(Box.prototype.isPrototypeOf( fn ));
    
    console.log(Object.prototype.isPrototypeOf( fn ));
    console.log(Object.prototype.isPrototypeOf( fun ));
    console.log(Object.prototype.isPrototypeOf( box ));
    console.log(Object.prototype.isPrototypeOf( Fn ));
    console.log(Object.prototype.isPrototypeOf( Fun ));
    console.log(Object.prototype.isPrototypeOf( Box ));
    console.log(Object.prototype.isPrototypeOf( "hello" ));

    console.log(Object.prototype.isPrototypeOf( new String("hello") ));

    console.log(fun instanceof Fun);
    console.log(fn instanceof Fn);
    console.log(box instanceof Box);
    console.log(fn instanceof Fun);
    // ...

    console.log( [] instanceof Array );
    console.log( {} instanceof Array );
    const d = new Date();
    const r = /a/;
    console.log( d instanceof Date );
    console.log( r instanceof RegExp );
    console.log( r instanceof Date );
    console.log( d instanceof RegExp );







</script>
</html>